extension UriExtension on Uri {
  Uri withParam(String key, dynamic value) {
    var params = <String, String>{};
    params.addAll(queryParameters);
    params[key] = '$value';
    return replace(queryParameters: params);
  }
}
